import request from '@/utils/request'

// 查询用户评价记录列表
export function listRating(query) {
  return request({
    url: '/manage/rating/list',
    method: 'get',
    params: query
  })
}

// 查询用户评价记录详细
export function getRating(recordId) {
  return request({
    url: '/manage/rating/' + recordId,
    method: 'get'
  })
}

// 新增用户评价记录
export function addRating(data) {
  return request({
    url: '/manage/rating',
    method: 'post',
    data: data
  })
}

// 修改用户评价记录
export function updateRating(data) {
  return request({
    url: '/manage/rating',
    method: 'put',
    data: data
  })
}

// 删除用户评价记录
export function delRating(recordId) {
  return request({
    url: '/manage/rating/' + recordId,
    method: 'delete'
  })
}
